package main

import (
	"gitee.com/shu2015626/go_start_imooc/chapter13-crawler/concurrency_crawler/engine"
	"gitee.com/shu2015626/go_start_imooc/chapter13-crawler/concurrency_crawler/scheduler"
	"gitee.com/shu2015626/go_start_imooc/chapter13-crawler/concurrency_crawler/zhenai/parser"
)

func main() {
	e := engine.ConcurrentEngine{
		Scheduler:&scheduler.SimpleScheduler{},
		WorkerCount:100,
	}

	e.Run(engine.Request{
		Url:        "http://www.zhenai.com/zhenghun",
		ParserFunc: parser.ParseCityList,
	})
}
